import java.util.Scanner;

public class Test4 {
    public static void main(String[] args) {
        Scanner read = new Scanner(System.in);
        int[] numList = {0, 1, 2, 3, 4, 5};
        int i;
        for (i = 0; i < numList.length; i++)
            System.out.printf("%d ", numList[i]);
        System.out.printf("\n上述数组的长度是%d\n", numList.length);
        System.out.print("请开始修改上述数组,输入回车表示下一个\n");
        for (i = 0; i < numList.length; i++)
            numList[i] = read.nextInt();
        System.out.print("修改后的数组显示为\n");
        for (i = 0; i < numList.length; i++)
            System.out.printf("%d ", numList[i]);

    }
}
